<div>
  <form name="lineinfo" class="form-horizontal form-validation">
    <div ng-repeat="ele in model">

      <div ng-switch="ele.id">

          <!-- xxxxx -->
          <div ng-switch-when="start_city_arr">
            
            <div class="form-group" >
              <label class="col-sm-2 col-xs-12 control-label">*出发城市</label>
              <div class="col-sm-9  col-xs-12" >
                <div class="fl">
                  <ui-select ng-model="placeobj.province" theme="bootstrap"
                  style="width: 150px; margin-right: 5px;"
                  ng-change="changeprovince(placeobj.province,'{{$select.selected.name}}')"
                      >
                          <ui-select-match placeholder="省">{{$select.selected.name}}</ui-select-match>
                          <ui-select-choices 
                          repeat="item.code as item in page.provincelist | filter: $select.search">
                            <span ng-bind-html="item.name | highlight: $select.search"></span>
                          </ui-select-choices>
                      </ui-select>
                    </div>
                    <div class="fl">
                  <ui-select ng-model="placeobj.city" theme="bootstrap"
                  style="width: 150px; margin-right: 5px;"
                  ng-change="changecity(placeobj.city,'{{$select.selected.name}}')"
                        >
                          <ui-select-match placeholder="市">{{$select.selected.name}}</ui-select-match>
                          <ui-select-choices 
                          repeat="item.code as item in page.citylist | filter: $select.search">
                            <span ng-bind-html="item.name | highlight: $select.search"></span>
                          </ui-select-choices>
                      </ui-select>
                    </div>
                     <button class="btn m-b-xs w-xs btn-success btn-rounded" ng-click="add()" style="margin: 3px">添加</button>
              </div>
     
                <div class="col-sm-2"></div>
               <div class="col-xs-2" ng-repeat="item in arr" ng-dblclick="removeSelectDate($index)">
                    <a class="btn btn-info btn-sm">
                        {{item.one}} &nbsp;&nbsp;<i class="glyphicon glyphicon-remove" ng-click="removeSelectDate($index)"></i>
                    </a>
                    <br/>
                    <br/>
                </div>
		         </div>
          </div>


          <div ng-switch-when="end_city">
            
            <div class="form-group" >
              <label class="col-sm-2 col-xs-12 control-label">*目的城市</label>
              <div class="col-sm-9  col-xs-12" >
                <div class="fl">
                  <ui-select ng-model="placeobj.guojia" theme="bootstrap"
                  style="width: 150px; margin-right: 5px;"
                  ng-change="changeprovince1(placeobj.guojia,'{{$select.selected.name}}')" 
                      >
                          <ui-select-match placeholder="国">{{$select.selected.name}}</ui-select-match>
                          <ui-select-choices 
                          repeat="item.id as item in page1.guojialist | filter: $select.search">
                            <span ng-bind-html="item.name | highlight: $select.search"></span>
                          </ui-select-choices>
                      </ui-select>
                    </div>
                <div class="fl">
                  <ui-select ng-model="placeobj.province1" theme="bootstrap"
                  style="width: 150px; margin-right: 5px;"
                  ng-change="changeprovince2(placeobj.province1,'{{$select.selected.name}}')"
                      >
                          <ui-select-match placeholder="省">{{$select.selected.name}}</ui-select-match>
                          <ui-select-choices 
                          repeat="item.id as item in page1.provincelist | filter: $select.search">
                            <span ng-bind-html="item.name | highlight: $select.search"></span>
                          </ui-select-choices>
                      </ui-select>
                    </div>
                    <div class="fl">
                  <ui-select ng-model="placeobj.city1" theme="bootstrap"
                  style="width: 150px; margin-right: 5px;"
                  ng-change="changecity1(placeobj.city1,'{{$select.selected.name}}')"
                        >
                          <ui-select-match placeholder="市">{{$select.selected.name}}</ui-select-match>
                          <ui-select-choices 
                          repeat="item.id as item in page1.citylist | filter: $select.search">
                            <span ng-bind-html="item.name | highlight: $select.search"></span>
                          </ui-select-choices>
                      </ui-select>
                    </div>
                     <button class="btn m-b-xs w-xs btn-success btn-rounded" ng-click="add1()" style="margin: 3px">添加</button>
              </div>

               <div class="col-sm-2" ></div>
               <div class="pull-left" ng-repeat="item in arr1" ng-dblclick="removeSelectDate1($index)" style="margin-left: 20px">
                    <a class="btn btn-info btn-sm btn-block">
                        {{item.one}} &nbsp;&nbsp;<i class="glyphicon glyphicon-remove" ng-click="removeSelectDate1($index)"></i>
                    </a>
                    <br/>
                    <br/>
                </div>
             
               <!--<div class="form-group" >
                 <div class="col-sm-2"></div>
                 <div class=" col-xs-1 control-label" ng-repeat="item in arr">{{item.one}}

                 </div>
               </div>-->
		      </div>
         

          </div>
          <!--lc负责人-->
          <div ng-switch-when="supplier_name">  
            <div class="line line-dashed b-b line-lg pull-in"></div>          
            <div class="form-group" >
              <label class="col-sm-2 col-xs-12 control-label">*供应商产品负责人</label>
              <div class="col-sm-9  col-xs-12" >
                <div class="fl">
                  <ui-select ng-model="b.employee" theme="bootstrap"
                  style="width: 150px; margin-right: 5px;"                
                      >
                          <ui-select-match >{{$select.selected.name}}</ui-select-match>
                          <ui-select-choices 
                          repeat="item.name as item in lclist | filter: $select.search">
                            <span ng-bind-html="item.name | highlight: $select.search"></span>
                          </ui-select-choices>
                      </ui-select>
                    </div>
                                   
                     <button class="btn m-b-xs w-xs btn-success btn-rounded" ng-click="addemployee()" style="margin: 3px">添加</button>
              </div>

               <div class="col-sm-2"></div>
               <div class="col-xs-1" ng-repeat="item in emarr" ng-dblclick="removeEmployee($index)">
                    <a class="btn btn-info btn-sm">
                        {{item.name}} <i class="glyphicon glyphicon-remove" ng-click="removeEmployee($index)"></i>
                    </a>
                    <br/>
                    <br/>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
             

		      </div>
         

          </div>

                    <!--lc上架端-->
          <div ng-switch-when="docking_port_arr">          
            <div class="form-group" >
              <label class="col-sm-2 col-xs-12 control-label">*上架端</label>
              <div class="col-sm-9  col-xs-12" >
                <div class="fl">
                  <ui-select ng-model="b.docking_port" theme="bootstrap"
                  style="width: 150px; margin-right: 5px;"                
                      >
                          <ui-select-match >{{$select.selected.name}}</ui-select-match>
                          <ui-select-choices 
                          repeat="item.name as item in dp | filter: $select.search">
                            <span ng-bind-html="item.name | highlight: $select.search"></span>
                          </ui-select-choices>
                      </ui-select>
                    </div>
                                   
                     <button class="btn m-b-xs w-xs btn-success btn-rounded" ng-click="adddp()" style="margin: 3px">添加</button>
              </div>

               <div class="col-sm-2"></div>
               <div class="col-xs-1" ng-repeat="item in dparr" ng-dblclick="removedp($index)">
                    <a class="btn btn-info btn-sm">
                        {{item.name}} <i class="glyphicon glyphicon-remove" ng-click="removedp($index)"></i>
                    </a>
                    <br/>
                    <br/>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
             

		      </div>
         

          </div>
          
        <div ng-switch-default>

          <dlqform ></dlqform>

        </div>
      </div>

      <div class="line line-dashed b-b line-lg pull-in"
      ng-if="ele.show !== 'no'"
      ></div>
    </div>

    <div class="m-t m-b">

      <button type="submit" class="btn btn-default btn-rounded" 
      ng-click="gogogo()"
      >保存</button>

    </div>

  </form>
</div>